home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12614 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  718 b 

  1. Path: lade.news.pipex.net!pipex!dircon!usenet
  2. From: pg-smith@dircon.co.uk (Peter Smith)
  3. Newsgroups: comp.lang.c
  4. Subject: Rounding a double
  5. Date: 2 Apr 1996 00:14:26 GMT
  6. Organization: Direct Connection
  7. Message-ID: <4jprh2$1li@newsgate.dircon.co.uk>
  8. NNTP-Posting-Host: gw4-185.pool.dircon.co.uk
  9. Mime-Version: 1.0
  10. X-Newsreader: WinVN 0.99.3
  11.  
  12. Has anybody got a C function to round a double to a number of decimal 
  13. places that:
  14. a) is readable
  15. b) is relatively short
  16. c) works !!
  17. I had a function but it failed if the number of decimal places was zero,
  18. if the double was very small,  .. . etc etc.
  19.  
  20. Is there a library of freeware C functions anywhere on the Internet ??
  21.  
  22. Many thanks
  23. Pete
  24.  
  25. replies to : pg-smith@dircon.co.uk
  26.  
  27.